/**
 * 
 */
package com.dovgopoly.carlogbook.model.data;

import javax.persistence.Column;
import javax.persistence.ManyToOne;

import com.dovgopoly.carlogbook.model.AbstractBaseEntity;
import com.dovgopoly.carlogbook.model.auto.Car;

/**
 * @author e.dovgopoliy
 * 
 */
public class Expense extends AbstractBaseEntity {

	private static final long serialVersionUID = -9180702504648778634L;

	private String text;
	private Float sum;

	private Car car;

	@Column(name = "text")
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Column(name = "sum")
	public Float getSum() {
		return sum;
	}

	public void setSum(Float sum) {
		this.sum = sum;
	}

	@ManyToOne
	@Column(name = "car")
	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

}
